package ooday04homework;

public class Dog  extends Animal implements Swim{

    Dog(){

    }
    Dog(String name,int age,String color){
        super(name, age, color);
    }

    void LookHome(){
        System.out.println("名叫"+name+"，今年"+age+"岁"+color+"色的狗狗正在看家护院.......");
    }

    void eat(){
        System.out.println("名叫"+name+"，今年"+age+"岁"+color+"色的狗狗正在吃骨头.......");
    }

    public void swim(){
        System.out.println("名叫"+name+"，今年"+age+"岁"+color+"色的狗狗正在狗刨式游泳.......");
    }

}
